package mesweb.mesweb.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import mesweb.mesweb.entity.MesTechnologyFlow;
import mesweb.mesweb.mapper.MesTechnologyFlowMapper;
import mesweb.mesweb.service.IMesTechnologyFlowService;
import mesweb.mesweb.vo.MesTechnologyFlowVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author niufw
 * @since 2021-05-19
 */
@Service
public class MesTechnologyFlowServiceImpl extends ServiceImpl<MesTechnologyFlowMapper, MesTechnologyFlow> implements IMesTechnologyFlowService {

    @Autowired
    private  MesTechnologyFlowMapper mesTechnologyFlowMapper;
    @Override
    public IPage<MesTechnologyFlowVo> getTechnologyFlow(Page page, QueryWrapper queryWrapper) {
        return mesTechnologyFlowMapper.getTechnologyFlow(page,queryWrapper);
    }
    @Override
    public List<MesTechnologyFlowVo> getTechnologyFlow(QueryWrapper queryWrapper) {
        return mesTechnologyFlowMapper.getTechnologyFlow(queryWrapper);
    }

    @Override
    public int updateWorkHours(long id) {
        return mesTechnologyFlowMapper.updateWorkHours(id);
    }


}
